package com.dissertation.action;

import com.dissertation.model.Assets;
import com.dissertation.pojo.DataTableRequest;
import com.dissertation.pojo.DataTableResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;

@Controller
public class TestController {

    @RequestMapping( "index" )
    String html() {
        System.out.println( "访问" );
        return "first";
    }


    @PostMapping( "/data/assets" )
    @ResponseBody
    DataTableResponse assets( @RequestBody DataTableRequest dataTableRequest,
                              String categoryLeafName ) {

        return null;
    }
}
